package jee.boot.entity.activiti;

import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.Table;
import jee.boot.common.basic.Page;
import jee.boot.entity.system.Filter;

import java.util.Date;

/**
 * 运行时流程执行实例表
 * 核心，我的代办任务查询表
 */
@Table(name = "act_hi_procinst")
public class ActHisProcinst extends ActDataEntity<ActHisProcinst> {
    private static final long serialVersionUID = 1L;

    /**
     * 流程定义ID
     */
    @Column(name = "PROC_DEF_ID_", data = {"procDef.id", "procDef.name", "procDef.key", "procDef.category", "procDef.", "procDef.version", "procDef.resourceName", "procDef.description"})
    private ActProcDef procDef;

    /**
     * 流程实例ID
     */
    @Column(name = "PROC_INST_ID_")
    private String proc_inst_id;
    /**
     * 业务主键ID
     */
    @Column(name = "BUSINESS_KEY_")
    private String businessKey;


    /**
     * 开始时间
     */
    @Column(name = "START_TIME_")
    private Date startTime;

    /**
     * 提醒时间
     */
    @Column(name = "CLAIM_TIME_")
    private Date claimTime;
    /**
     * 结束时间
     */
    @Column(name = "END_TIME_")
    private Date endTime;
    /**
     * 耗时	毫秒值
     */
    @Column(name = "DURATION_")
    private int duration;

    /**
     * 起草人
     */
    @Column(name = "START_USER_ID_")
    private String startUser;

    public ActHisProcinst() {
    }

    public ActHisProcinst(String id) {
        super(id);
    }

    public ActProcDef getProcDef() {
        return procDef;
    }

    public void setProcDef(ActProcDef procDef) {
        this.procDef = procDef;
    }

    public String getProc_inst_id() {
        return proc_inst_id;
    }

    public void setProc_inst_id(String proc_inst_id) {
        this.proc_inst_id = proc_inst_id;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getClaimTime() {
        return claimTime;
    }

    public void setClaimTime(Date claimTime) {
        this.claimTime = claimTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getStartUser() {
        return startUser;
    }

    public void setStartUser(String startUser) {
        this.startUser = startUser;
    }
}
